let path = require('path');
class P {
    constructor(options) {

    }
    apply(compiler) {
        compiler.hooks.done.tap('saber', () => {
            console.log('saber')
        })
        compiler.hooks.done.tap('lancer', () => {
            console.log('lancer')
        })
    }
}
module.exports = {
    mode: 'development',
    entry: './src/index.js',
    output: {
        filename: 'main.js',
        path: path.resolve(__dirname, 'dist')
    },
    plugins: [
        new P()
    ],
    module: {
        rules: [
            {
                test: /\.less$/,
                use: [
                    path.resolve(__dirname, './loader/style-loader'),
                    path.resolve(__dirname, './loader/less-loader')
                ]
            }
        ]
    }
}